<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>BUSCAR CENTRO DE FORMACION</title>
</head>
<body>

	<form action="<%=request.getContextPath() %>/centro_inicio.html" method="get">
	
	<table border="1">
	<tr>
		<th>Nombre Centro</th>
		<td>
			<input type="text" id="txtnombre" name="txtnombre" size="25" value="${HS_DATOS.HM_BEAN_CENTRO.nombreCentro}">
		</td>
	</tr>
	<tr>
		
		
	</tr>
	<tr>
		<td align="right" colspan="2">
			
				<button type="submit">Buscar</button>
			
						
		</td>
	</tr>
</table>
	
	</form>
	
	<br/>
	
	<table border="1" width="100%">
	<thead>
		<tr>
			<th>Id Centro</th>
			<th>Centro Formacion</th>
			<th>Tipo Centro</th>
			<th>URL Centro</th>
			<th>Logo</th>
			
		</tr>
	</thead>
	<tbody>
	
	<c:forEach items="${HS_DATOS.HM_LST_CENTRO}" var="lst" varStatus="i">
		<tr>			
			<td>${lst.idCentroFormacion}</td>
			<td>${lst.nombreCentro}</td>
			<td>${lst.tipo}</td>
			<td>${lst.uRL}</td>
			<td>${lst.logo}</td>
			<td style="width:150px;">
			<a href="javascript: window.location = 'centro_cargaEditar.html?codigo=${lst.idCentroFormacion}';">
					Modificar
				</a>				
			</td>
		</tr>
	</c:forEach>
			
	</tbody>
</table>
	
	
</body>
</html>